using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.OleDb;

namespace QLNS.Data
{
    public class KyLuat_db
    {
        Services m_Ds = new Services();
        public KyLuat_db() { }

        public DataTable DanhSachKyLuat()
        {
            OleDbCommand cmd = new OleDbCommand("SELECT * FROM KYLUAT");
            m_Ds.Load(cmd);

            return m_Ds;
        }

        public DataRow NewRow()
        {
            return m_Ds.NewRow();
        }

        public void Add(DataRow row)
        {
            m_Ds.Rows.Add(row);
        }

        public bool Save()
        {
            return m_Ds.ExecuteNoneQuery() > 0;
        }
    }
}
